package com.hspedu.poly.polyparameter_;

public class Gen_Staff extends Staff {

    public Gen_Staff(String name, double salary) {
        super(name, salary);
    }

    public void work() {
        System.out.println("普通员工" + getName() + "正在认真工作");
    }

    //重写获取年薪的方法
    @Override
    public double getAnnual() {
        return super.getAnnual();
    }
}
